package com.yyw.gulimall.product.feign.ware;

import com.yyw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 易煜玮
 * @ClassName WareFeignService.java
 * @Description
 * @createTime 2020年11月23日 21:52:00
 */
@FeignClient(name = "gulimall-ware")
public interface WareFeignService {

    /**
     * 根据SkuId批量获取是否有库存
     * @param skuIds
     * @return
     */
    @GetMapping("/ware/waresku/stock/bulk")
    R bulkGetStock(@RequestParam List<Long> skuIds);
}
